#!/bin/bash
# compreses a whole folder.

for x in $(ls $1 | grep -v ".gz"); do
	# make name.
	name=$1/${x}.tar.gz
	
	# compress.
	tar cvfz $name $1/$x
	
	# remove original.
	rm -rf $1/$x
done;
